package com.itljm.cxrMarket.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itljm.cxrMarket.entity.OrderItems;
import com.itljm.cxrMarket.entity.dto.OrderItemProductsDTO;
import com.itljm.cxrMarket.service.OrderItemsService;
import com.itljm.cxrMarket.mapper.OrderItemsMapper;
import com.itljm.cxrMarket.service.ProductsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderItemsServiceImpl extends ServiceImpl<OrderItemsMapper, OrderItems> implements OrderItemsService{
    @Autowired
    private OrderItemsMapper orderItemsMapper;

    @Override
    public List<OrderItemProductsDTO> findOrderItemsProductsByOrderId(Integer orderId) {
        return orderItemsMapper.selectOrderItemsProductsByOrderId(orderId);
    }
}




